﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace ESP.Configuration
{
    public class WebSiteSettings : ConfigurationElement
    {
        private static ConfigurationPropertyCollection _Properties;
        private static readonly ConfigurationProperty _TitleProperty;
        private static readonly ConfigurationProperty _DomainProperty;

        static WebSiteSettings()
        {
            _Properties = new ConfigurationPropertyCollection();

            _TitleProperty = new ConfigurationProperty("title", typeof(string), null);
            _DomainProperty = new ConfigurationProperty("domain", typeof(string), null);

            _Properties.Add(_TitleProperty);
            _Properties.Add(_DomainProperty);
        }
        protected override ConfigurationPropertyCollection Properties
        {
            get
            {
                return _Properties;
            }
        }


        /// <summary>
        /// 
        /// </summary>
        public string Title
        {
            get
            {
                return (string)this["title"];
            }
            set
            {
                this["title"] = value;
            }
        }


        /// <summary>
        /// 
        /// </summary>
        public string Domain
        {
            get
            {
                return (string)this["domain"];
            }
            set
            {
                this["domain"] = value;
            }
        }
    }
}
